import fetch from '@system.fetch'
export default {
    data: {
        responseData: 'NA',
        url: "https://jsonplaceholder.typicode.com/posts",
    },
    request() {
        console.log('fetch')
        fetch.fetch({
            url: "https://jsonplaceholder.typicode.com/posts",
            success: (response)=> {
                console.info("fetch success");
                this.responseData = JSON.stringify(response);
            },
            fail: ()=> {
                console.info("fetch fail");
            }
        });
    }
}